package com.cd.hospital.modules.service.impl;

import com.cd.hospital.modules.dao.NewsTagsDao;
import com.cd.hospital.modules.entity.NewsTagsEntity;
import com.cd.hospital.modules.service.NewsTagsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("newsTagsService")
public class NewsTagsServiceImpl implements NewsTagsService {
	@Autowired
	private NewsTagsDao newsTagsDao;
	
	@Override
	public NewsTagsEntity queryObject(Integer id){
		return newsTagsDao.queryObject(id);
	}
	
	@Override
	public List<NewsTagsEntity> queryList(Map<String, Object> map){
		return newsTagsDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return newsTagsDao.queryTotal(map);
	}
	
	@Override
	public void save(NewsTagsEntity newsTags){
		newsTagsDao.save(newsTags);
	}
	
	@Override
	public void update(NewsTagsEntity newsTags){
		newsTagsDao.update(newsTags);
	}
	
	@Override
	public void delete(Integer id){
		newsTagsDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		newsTagsDao.deleteBatch(ids);
	}
	
}
